package com.mall.promo.dto;

import com.mall.commons.result.AbstractRequest;
import com.mall.commons.tool.exception.ValidateException;
import com.mall.promo.constants.PromoRetCode;
import lombok.Data;

/**
 * @author
 * @date 2020/12/26 17:19
 */
@Data
public class SecKillListRequest extends AbstractRequest {
    Integer sessionId;
    @Override
    public void requestCheck() {
        if (sessionId == null) {
            throw new ValidateException(PromoRetCode.REQUISITE_PARAMETER_NOT_EXIST.getCode(),PromoRetCode.REQUISITE_PARAMETER_NOT_EXIST.getMessage());
        }
    }
}
